
     @include('common.header')
        <div class="content col-xs-12 col-sm-10">
                        <div class="banner">
                            <p class="fl">农户信息 </p>
                                <p class="fr"><a href="/landowner/create">添加</a></p>
      
                        </div>
  @if (count($errors) > 0)
    <div class="alert alert-danger">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
                        <div class="table">
                            <table>
                                <thead>
                                    <tr>
                                        <td width="9%">名称</td>
                                        <td width="9%">性别</td>
                                        <td>身份证号码</td>
                                        <td>生产队</td>
                                        <td>合同</td>
                                        <td>土地</td>
                                        <td>修改</td>
                                        <td>删除</td>
                                    </tr>
                                </thead>
                                <tbody>
                            @foreach ($lands as $land)
                            <tr>
                                      <td><a href="/landowner/show/{{$land->id}}">{{ $land->name }}</a></td>
                                        <td>
                                      @if ($land->sex == MALE)
                                        男
                                      @else
                                        女
                                      @endif   

                                       </td>
                                        <td>{{ $land->idcardNo }}</td>
                                        <td>{{ $land->team }}</td>
                                        <td><a href="/contract/showByLandowner/{{$land->id}}">名下合同</a></td>
                                        <td><a href="/land/showByLandowner/{{$land->id}}">名下土地</a></td>
                                        <td><a href="/landowner/modify/{{$land->id}}">修改</a></td>
                                        <td><a href="/landowner/delete/{{$land->id}}">删除</a></td>
                                      </tr>
                            @endforeach         
                                          
                          </tbody>
                                
                            </table>
                        </div>
                    
                   <!--  <div class="page">
              <div class="big first fl">首页</div>
              <div class="big fl">←</div>
              <div class="num cur fl">1</div>
              <div class="num fl">2</div>
              <div class="num fl">3</div>
              <div class="num fl">4</div>
              <div class="num fl">5</div>
              <div class="big fl">→</div>
              <div class="big last fl">末页</div>
            </div> -->
                </div>
        
        <script type="text/javascript">
    
        $("table tbody tr:even").css("backgroundColor","#FFF");
        $("table tbody tr:odd").css("backgroundColor","#EBF9FF");
        
        </script>

   @include('common.footer')
  
